import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

/* 订单明细分析-列表 */
export function getOrderList(data) {
  return request({
    url: '/jcdOrder/reportStatistics/sellDetails',
    method: 'get',
    headers: encryptionData(data, '/reportStatistics/sellDetails'),
    params: data
  })
}

/* 采购汇总分析-列表 */
export function getPurchaseList(data) {
  return request({
    url: '/jcdOrder/reportStatistics/storeDetails',
    method: 'get',
    headers: encryptionData(data, '/reportStatistics/storeDetails'),
    params: data
  })
}

/* 销售汇总分析-列表 */
export function getSellList(data) {
  return request({
    url: '/jcdOrder/reportStatistics/merchantDetails',
    method: 'get',
    headers: encryptionData(data, '/reportStatistics/merchantDetails'),
    params: data
  })
}

/* 产品销售统计-列表 */
export function getProductSellList(data) {
  return request({
    url: '/jcdOrder/reportStatistics/productSalesStatistics',
    method: 'get',
    headers: encryptionData(data, '/reportStatistics/productSalesStatistics'),
    params: data
  })
}

/* 会员总数据-列表 */
export function getMemberList(data) {
  return request({
    url: '/jcdGys/jcdMember/getMemberData',
    method: 'get',
    headers: encryptionData(data, '/jcdMember/getMemberData'),
    params: data
  })
}

/* 品牌商总数据-列表 */
export function getDealerList(data) {
  return request({
    url: '/jcdGys/merchant/getMerchantStatistics',
    method: 'get',
    headers: encryptionData(data, '/merchant/getMerchantStatistics'),
    params: data
  })
}